import request from '@/utils/request'

// 查询企业出渣列表
export function listOpmEnvFirmWaste(query) {
  return request({
    url: '/environment/opmEnvFirmWaste/list',
    method: 'get',
    params: query
  })
}

// 查询企业出渣详细
export function getOpmEnvFirmWaste(id) {
  return request({
    url: '/environment/opmEnvFirmWaste/' + id,
    method: 'get'
  })
}

// 新增企业出渣
export function addOpmEnvFirmWaste(data) {
  return request({
    url: '/environment/opmEnvFirmWaste',
    method: 'post',
    data: data
  })
}

// 修改企业出渣
export function updateOpmEnvFirmWaste(data) {
  return request({
    url: '/environment/opmEnvFirmWaste',
    method: 'put',
    data: data
  })
}

// 删除企业出渣
export function delOpmEnvFirmWaste(id) {
  return request({
    url: '/environment/opmEnvFirmWaste/' + id,
    method: 'delete'
  })
}
